/*
 * @Descripttion:
 * @version:
 * @Author: cxguo
 * @Date: 2019-12-13 17:04:37
 * @LastEditors: cxguo
 * @LastEditTime: 2019-12-17 08:46:46
 */
import SecondMenu from '@/components/SecondMenu'

export default [
  {
    title: '进销存',
    path: '/sale',
    component: SecondMenu,
    children: [
      {
        path: 'sold_list',
        name: 'SaleSoldList',
        component: () => import('@/views/sale/list-sold'),
        meta: { title: '销售报表' }
      },
      {
        path: 'return_list',
        name: 'SaleListReturn',
        component: () => import('@/views/sale/list-return'),
        meta: { title: '销售明细表' }
      },
      {
        path: 'sold_add',
        component: () => import('@/views/sale/sold'),
        name: 'SaleSold',
        props: (route) => ({ operation: route.query.operation, salesoldId: route.query.salesoldId }),
        meta: { title: '进货报表' }
      },
      {
        path: 'sold_add',
        component: () => import('@/views/sale/sold'),
        name: 'SaleSold',
        props: (route) => ({ operation: route.query.operation, salesoldId: route.query.salesoldId }),
        meta: { title: '进销对比统计' }
      },
      {
        path: 'sold_add',
        component: () => import('@/views/sale/sold'),
        name: 'SaleSold',
        props: (route) => ({ operation: route.query.operation, salesoldId: route.query.salesoldId }),
        meta: { title: '库存变动表' }
      }
    ]
  },
  {
    title: '财务',
    path: 'sold_parent',
    children: [
      {
        path: 'sold_list',
        name: 'SaleSoldList',
        component: () => import('@/views/sale/list-sold'),
        meta: { title: '经营状况' }
      },
      {
        path: 'return_list',
        name: 'SaleListReturn',
        component: () => import('@/views/sale/list-return'),
        meta: { title: '利润报表' }
      },
      {
        path: 'return_list',
        name: 'SaleListReturn',
        component: () => import('@/views/sale/list-return'),
        meta: { title: '业绩报表' }
      }
    ]
  }
]
